home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _DC3A0A5E65E94F9A804D2EE5C7FAF1F7 < prev    next >
Encoding:
Text File  |  2004-06-16  |  1.9 KB  |  96 lines

  1.  
  2. Shader()
  3. {//gf3
  4.     SurfaceID(SRFTYPE)
  5.     Shaderquality(3)
  6.     NoLightmaps()
  7.     Pass()
  8.     {
  9.         Lighting()
  10.         Pixelshader("COST.psh")
  11.  
  12.         !include("__Tex1.mtt")
  13.         !include("__Clouds.mtt")
  14.         !include("__TerrainColormapSmall.mtt")
  15.         !include("__WaterDeep.mtt")
  16.  
  17.         !include("__FadeGen.mtt")
  18.         !include("__LightningColors.mtt")
  19.  
  20.     }
  21.  
  22.     lightpass()
  23.     !include("Spot1Tex.mtt")
  24.  
  25.     Cull("cw")
  26. }
  27.  
  28. Shader()
  29. {// >=gf3
  30.     SurfaceID(SRFTYPE)
  31.     NoLightmaps()
  32.     Shaderquality(1)
  33.     Pass()
  34.     {
  35.         Lighting()
  36.         Pixelshader("OST.psh")
  37.  
  38.         !include("__Tex1.mtt")
  39.         !include("__TerrainColormapSmall.mtt")
  40.  
  41.         !include("__FadeGen.mtt")
  42.         !include("__LightningColors.mtt")
  43.  
  44.     }
  45.  
  46.     lightpass()
  47.     !include("Spot1Tex.mtt")
  48.     Cull("cw")
  49. }
  50.  
  51. Shader()
  52. {//gf2
  53.     SurfaceID(SRFTYPE)
  54.     Shaderquality(0)
  55.     NoLightmaps()
  56.     Pass()
  57.     {
  58.         Lighting()
  59.         tmu()
  60.         {
  61.             TexGen("planar")
  62.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  63.             texture()
  64.             {
  65.                 Image(%colortexturesmall)
  66.                 addressfunc("clamp", "clamp", "clamp")
  67.             }
  68.             ColorOp("mul_add", "texture_a", "diffuse", "tfactor_a")
  69.         }
  70.  
  71.  
  72.         tmu()
  73.         {
  74.             Texture()
  75.             {
  76.                 Mapchannel(0)
  77.                 Image(TEXTURE1)
  78.                 !include(TEX1OPTIONSFILE)
  79.             }
  80.             ColorOp("mul", "texture", "current", "current")     //texture * lighting
  81.             AlphaOp("arg2", "texture", "diffuse", "current")    //fadeblending
  82.         }
  83.  
  84.         Tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  85.  
  86.         !include("__FadeGenDayColorGF2.mtt")
  87.  
  88.         !include("__LightningColorsGF2.mtt")
  89.  
  90.     }
  91.     lightpass()
  92.     !include("spot_spotmap.mtt")
  93.     Cull("cw")
  94. }
  95.  
  96.